<?php
/*
 * To change this license header, choose License Headers in Project Properties.
 * To change this template file, choose Tools | Templates
 * and open the template in the editor.
 */

if (!defined("ACCESS"))
    die("Access denied");
?>

<script type="text/javascript">
    $(function() {
        $("input,select,textarea").not("[type=submit]").jqBootstrapValidation();

    });
</script>

<form class="form-horizontal" method="post" action="index.php?pages=validate"  novalidate="">
    <div class="control-group">
        <label class="control-label" for="email">Email address</label>
        <div class="controls">
            <input type="email" name="email" id="email" required="" aria-invalid="false">
            <p class="help-block">Email address we can contact you on</p>
        </div>
    </div>
    <div class="control-group">
        <label class="control-label" for="emailAgain">Email again</label>
        <div class="controls">
            <input type="email" data-validation-matches-match="email" data-validation-matches-message="Must match email address entered above" id="emailAgain" name="emailAgain" aria-invalid="false">
            <p class="help-block">And again, to check for speeling miskates</p>
        </div>
    </div>
    <div class="control-group">
        <label class="control-label" for="terms-and-conditions">Legal</label>
        <div class="controls">
            <label class="checkbox">
                <input type="checkbox" id="terms-and-conditions" name="terms-and-conditions" required="" data-validation-required-message="You must agree to the terms and conditions">
                I agree to the <a href="#">terms and conditions</a>
            </label>
            <p class="help-block"></p>
        </div>
    </div>
    <div class="control-group">
        <label class="control-label">Quality Control</label>
        <div class="controls">
            <label class="checkbox">
                <input type="checkbox" name="qualityControl[]" value="fast" data-validation-minchecked-minchecked="2" data-validation-minchecked-message="Choose two" data-validation-maxchecked-maxchecked="2" data-validation-maxchecked-message="You can't have it all ways">
                Fast
            </label>
            <label class="checkbox">
                <input type="checkbox" name="qualityControl[]" value="cheap">
                Cheap
            </label>
            <label class="checkbox">
                <input type="checkbox" name="qualityControl[]" value="good">
                Good
            </label>
            <p class="help-block"></p>
        </div>
    </div>
    <div class="form-actions">
        <button type="submit" class="btn btn-primary">Test Validation <i class="icon-ok icon-white"></i></button><br>
        (go ahead, nothing is sent anywhere)
    </div>
</form>


